package com.suse.service.admin.edu.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "VideoSaveParam",description = "课时添加参数")
public class VideoSaveParam {

    @ApiModelProperty(value = "课时标题",required = true)
    @NotEmpty(message = "课时标题不能为空")
    private String title;

    @ApiModelProperty(value = "课程ID",required = true)
    @NotEmpty(message = "课程ID不能为空")
    private String courseId;

    @ApiModelProperty(value = "章节ID",required = true)
    @NotEmpty(message = "章节ID不能为空")
    private String chapterId;

    @ApiModelProperty(value = "课时是否免费：0 收费 1 免费",required = true)
    @NotNull(message = "课时是否免费不能为空")
    private Integer isFree;

    @ApiModelProperty(value = "课时排序",required = true)
    @NotNull(message = "课时排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "云视频资源ID")
    private String videoSourceId;

}
